package com.huilian.iotbox.data.service;

import com.github.pagehelper.PageInfo;
import com.huilian.iotbox.data.dto.CommodityStockDto;
import com.huilian.iotbox.data.vo.CommodityStockVo;

import java.util.List;

public interface CommodityStockCommonService {

    List<CommodityStockVo> findStockData(CommodityStockDto commodityStockDto);

    void updateSafeStock(CommodityStockDto commodityStockDto) throws Exception;

    void amendStock(CommodityStockDto commodityStockDto) throws Exception;

    void inOrOutStock(CommodityStockDto commodityStockDto) throws Exception;

    int updateAmendStockByCommodityIdAdd(CommodityStockDto commodityStockDto) throws Exception;

    int updateAmendStockByCommodityIdMinus(CommodityStockDto commodityStockDto) throws Exception;

    int add(CommodityStockDto commodityStockDto);

    CommodityStockVo findStockV2(CommodityStockDto commodityStockDto);

    List<CommodityStockVo> findByCommodity(CommodityStockDto commodityStockDto);

    void inventory(CommodityStockDto commodityStockDto) throws Exception;

    List<CommodityStockVo> findInventoryNot(CommodityStockDto commodityStockDto);

    CommodityStockVo findCommodityStock(CommodityStockDto commodityStockDto);

    void minusStockService(CommodityStockDto commodityStockDto,Integer type) throws Exception;

    void addStockService(CommodityStockDto commodityStockDto,Integer type) throws Exception;
}
